<?php
namespace Home\Controller;
use Think\Controller;
use Home\Model\CommonBiz;

class BaseController extends Controller {

    function _initialize(){
        $server_config_array = CommonBiz::getPageServerConfig();

        //region 1、加载主题策略
        $current_theme_name  = C('ThemeConfig.default_theme');
        $current_theme_array = array(
            'theme_name'    => $current_theme_name,
            'root_resource_url' => C('ThemeConfig.theme_root_resource_dir'),
            'theme_resource_url'=> C('ThemeConfig.theme_root_resource_dir').'/'.$current_theme_name,
        );
        $server_config_array['CurrentTheme']    = $current_theme_array;

        $this->assign('server_config', $server_config_array);

        //layout(true);
        //endregion 1、加载主题策略
    }


}
